package com.xbongbong.saas.model;

import com.xbongbong.saas.domain.entity.DingBundleUserEntity;
import com.xbongbong.paas.toolbox.wrap.IModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 * @author chenshan
 * @version v1.0
 * @since 2019-08-16 10:49
 */
public interface DingBundleUserModel extends IModel<DingBundleUserEntity> {

	public void insertBatch(List<DingBundleUserEntity> dingBundleUserList);

	public Integer save(DingBundleUserEntity entity);

	public DingBundleUserEntity getEntity(Long id, String corpid);

	public Integer deleteByIds(List<Long> ids, String corpid);
	
	Integer deleteByOpenConversationId(String openConversationId, String corpid);
	
	public void updateBatch(List<DingBundleUserEntity> dingBundleUserList);

	public void deleteByBundleAndUserIds(String corpid,Long bundleId, List<String> userIds);
	
	public void updateBatchSubAdmin(String corpid,String bundleId, List<String> userIds);

	public Integer dataConsistencyUpdateUser(String corpid, String userId, String name, String avatar);

}